package com.jvm.栈内存溢出;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.List;

public class Dept {
    private String dName;

    @JsonIgnore
    private List<Student> list;

    public Dept(String dName) {
        this.dName = dName;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "dName='" + dName + '\'' +
                ", list=" + list +
                '}';
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public List<Student> getList() {
        return list;
    }

    public void setList(List<Student> list) {
        this.list = list;
    }
}
